package com.zbkj.common.model.traceable;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备明细表
 * </p>
 *
 * @author dazongzi
 * @since 2025-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZfbDeviceBatchesItems对象", description="设备明细表")
public class ZfbDeviceBatchesItems implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "设备ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备批次ID")
    private Integer batchesId;

    @ApiModelProperty(value = "设备mac地址")
    private String deviceMac;

    @ApiModelProperty(value = "设备SN编号")
    private String sn;

    @ApiModelProperty(value = "状态(1=待分配,2=已分配,3=损坏)")
    private Integer status;

    @ApiModelProperty(value = "绑定时间")
    private Date bindTime;

    @ApiModelProperty(value = "是否损坏")
    private Boolean isBad;

    @ApiModelProperty(value = "是否删除:0否,1是")
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    @ApiModelProperty(value = "关联类型（1=商品）")
    private Integer linkType;

    @ApiModelProperty(value = "关联ID")
    private Integer linkId;

    @ApiModelProperty(value = "使用状态(0=未锁定,1=已锁定,2=已消费)")
    private Integer usedStatus;

    @ApiModelProperty(value = "消费用户ID")
    private Integer uid;

    @ApiModelProperty(value = "消费时间")
    private Date useTime;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

}
